import models
from rest_framework import serializers


class LineItemSerializer(serializers.HyperlinkedModelSerializer):
    title = serializers.Field(source='title')

    class Meta:
        model = models.LineItem
        fields = ('title', 'unit_price', 'quantity')
